import { get, post} from '@/util/request';
const api = {
  child: '/child',
 };


/**
 * 设置/更新计划
 * @param {Object} data - 计划数据
 * @returns {Promise} - 返回更新结果
 */
export const childSet = (data) => post(api.child, data);
export const childGet = (data) => get(api.child, data);

// 获取宝宝资料
export const childProfileGet = (params) => {
  return request({
    url: '/child/profile',
    method: 'get',
    params
  });
};

// 保存宝宝资料
export const childProfileSet = (data) => {
  return request({
    url: '/child/profile',
    method: 'post',
    data
  });
};

